/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package javaapplication1.uno;

import java.text.DateFormat;
import java.text.ParseException;
import java.util.Date;
import java.util.logging.Level;
import java.util.logging.Logger;

/**
 *
 * @author abelitro
 */
class PingPong2 {

    synchronized void hit(long n) {
        for (int i = 1; i < 3; i++) {
            System.out.print(n + "-" + i + " ");
        }
    }
}

public class Tester implements Runnable {

    static PingPong2 pp2 = new PingPong2();

    public static void main(String[] args) {
        new Thread(new Tester()).start();
        new Thread(new Tester()).start();
    }

    @Override
    public void run() {
        pp2.hit(Thread.currentThread().getId());
        DateFormat df = null;
        Date d = new Date(0L);
        String ds = "December 15, 2004";
        try {
            df.parse(ds);
        } catch (ParseException ex) {
            Logger.getLogger(Tester.class.getName()).log(Level.SEVERE, null, ex);
        }

    }
}
